package guoanmaker.operator.business.repository;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.security.access.method.P;

import guoanmaker.operator.business.model.OperatorCompanyServiceNew;

public interface OperatorCompanyServiceNewRepository extends JpaRepository<OperatorCompanyServiceNew, String>, JpaSpecificationExecutor<OperatorCompanyServiceNew> {
	@Modifying
	@Query(value = "delete from t_operator_company_service_new where citycode=:cityCode ", nativeQuery = true)
	public void deleteOperatorCompanyServiceNewByCityCode(@Param("cityCode") String cityCode);
	@Query("select c from OperatorCompanyServiceNew c where c.citycode=:cityCode")
	public List<OperatorCompanyServiceNew> findOperatorCompanyServiceNewByCityCode(@Param("cityCode") String cityCode);
	
	

}
